import os
import re
import shutil

import numpy as np
import scipy.io as scio
import pandas as pd

from datetime import datetime
from tqdm import tqdm

def process_radardata(allradardatafilepathfolder,allradardatafilepath,chirp):
    """
    function: 
    """
    Capture_start_time = datetime.strptime(allradardatafilepath, 
                                           '%Y%m%d%H%M%S')

    radardatalen=480000
    onefps=300/(radardatalen/chirp)
    framefilepath=os.path.join(allradardatafilepathfolder,
                               allradardatafilepath,
                               allradardatafilepath+'_frame.npy')


    framelist=[]

    for i in range(int(radardatalen/chirp)):
        framelist.append(i*onefps+Capture_start_time.timestamp())

    framearray=np.array(framelist)
    np.save(framefilepath,framearray)